package com.oraking.android.hybridapp.dev.korealaw.util;

/**
 * 파일명          : CmmStr.java
 * 작성일          : 2011. 9. 30.
 * 작성자          : <a href='http://oraking.springnote.com/' target='_blank'>Teddy</a>
 * Todo      :
 * 수정내용
 * -------------------------------------------------------------
 *      수정일      |      수정자      |              수정내용
 * -------------------------------------------------------------
 *              |              |
 */

public class CmmStr {

	// File 관련 상수 Start
	public static String LIST_CSS_PATH = "cmm/css/";
	public static String LIST_JS_PATH = "cmm/js/";
	public static String LIST_IMAGE_PATH = "cmm/images/";
	public static String CONTENT_CSS_PATH = "law/css/";
	public static String HTML_PATH = "www/";
	public static String [] LIST_CSS_FILES = {"jqm-docs.css", "jquery.mobile-1.0rc1.min.css","master.css"};
	public static String [] LIST_JS_FILES = {"jqm-docs.js", "jquery-1.6.4.min.js","jquery.mobile-1.0rc1.min.js","jquery.mobile.themeswitcher.js","main.js","phonegap-1.1.0.js"};
	public static String [] LIST_IMAGE_FILES = {"ajax-loader.png", "icons-18-black.png","icons-18-white.png","icons-36-black.png","icons-36-white.png","jqm-sitebg.png", "version.png"};
	public static String [] CONTENT_CSS_FILES = {"common.css", "content.css","xtheme-layer.css","xtheme-lsHst.css","xtheme-lsOutput.css","calendar.css","ls-ex.css","oldandnew.css","thdcmp.css","ext_all_ex.css","xtheme-ls.css"};
	public static String [] HTML_FILES = {"KoreaLawCn.html"};
	public static String HTML_LIST_FILE_NAME = "KoreaLawList.html";
	public static String HTML_CONTENT_FILE_NAME = "KoreaLawContent.html";
	// File 관련 상수 End


	// Debug 관련 상수 Start
	public static String DEBUG = "debug";
	public static String ERROR = "error";
	public static String INFO = "info";
	// Debug 관련 상수 End

	// Url 관련 상수 Start
	public static String LAWURL = "http://www.law.go.kr";
	public static String ACTION1 = "/DRF/lawSearch.do?OC=open&type=XML&nw=3&display=20";
	public static String ACTION2 = "/LSW/lsInfoR.do?lsiSeq=";

	public static String ID = "etoile79";
	public static String OC = "OC";
	public static String TARGET = "target";
	public static String MST = "MST";
	public static String QUERY = "query";
	public static String TYPE = "type";
	public static String PAGE = "page";
	// Url 관련 상수 End

	// 법 관련 상수 Start
	public static String LAW = "law";				// 법령
	public static String ADMRUL = "admrul";  		// 행정규칙
	public static String ORDIN = "ordin";			// 자치법규
	public static String TRTY = "trty";				// 조약
	public static String PREC = "prec";				// 판례/해석례
	public static String LICBYL = "licbyl";			// 별표서식
	public static String LSTRM = "lstrm";			// 법령용어
	// 법 관련 상수 End

	// List Html 관련 Tag Start
	public static String HTML_LIST_START_TAG = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>jQuery Mobile Docs - Lists with Forms</title>\n<link rel=\"stylesheet\"  href=\"../cmm/css/jquery.mobile-1.0rc1.min.css\" />\n<link rel=\"stylesheet\" href=\"../cmm/css/jqm-docs.css\"/>\n<script src=\"../cmm/js/jquery-1.6.4.min.js\"></script>\n<script src=\"../cmm/js/jquery.mobile.themeswitcher.js\"></script>\n\n<script src=\"../cmm/js/jqm-docs.js\"></script>\n<script src=\"../cmm/js/jquery.mobile-1.0rc1.min.js\"></script>\n<script type=\"text/javascript\" charset=\"utf-8\" src=\"../cmm/js/phonegap-1.1.0.js\"></script>\n<script type=\"text/javascript\" charset=\"utf-8\">\n<script type=\"text/javascript\" charset=\"utf-8\">\n\n<script type=\"text/javascript\" charset=\"utf-8\">\n//Call onDeviceReady when PhoneGap is loaded.\n//\n// At this point, the document has loaded but phonegap.js has not.\n// When PhoneGap is loaded and talking with the native device,\n// it will call the event `deviceready`.\n//\nfunction onLoad() {\n    document.addEventListener(\"deviceready\", onDeviceReady, false);\n}\n</script>\n<script language=\"JavaScript\">\nfunction sendMessage(msg){\nwindow.HybridApp.setMessage(msg);\n}\n</script>\n</head>\n<body>\n\n\n<div data-role=\"page\">\n<!-- header -->\n<div data-role=\"header\" data-theme=\"f\">\n<h1>국가법령정보센터</h1>\n<a href=\"http://oraking.springnote.com\" data-icon=\"home\" data-iconpos=\"notext\" data-direction=\"reverse\" class=\"ui-btn-right jqm-home\">Home</a>\n</div>\n<!-- /header -->\n\n<div data-role=\"content\">\n<ul data-role=\"listview\">\n";
	public static String HTML_LIST_END_TAG = "</ul>\n</div>		<div data-role=\"footer\" class=\"ui-bar\" data-theme=\"f\">\n<a data-role=\"button\" data-icon=\"arrow-u\"><div onclick=\"sendMessage('up')\">Up</div></a>\n<a data-role=\"button\" data-icon=\"arrow-d\"><div onclick=\"sendMessage('down')\">Down</div></a>\n</div>\n</div>\n</body>\n</html>\n";
	public static String HTML_LIST_LIST_TAG = "<li>\n<a>\n<div onclick=\"sendMessage('url='+'%s')\">\n<h3>%s</h3>\n<p>%s</p>\n</div>\n</a>\n</li>\n";
	// List Html 관련 Tag End

	public static String EXPRESS_BY_DUAL = "(<div\\s*(id|class)\\s*=\\s*('|\")contentBody('|\"))";

	public static String HTML_START_TAG = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>";
	public static String CSS_TAG = "<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\" />";

	public static String DATE_EXP = "%s년%s월%s일";

	public static String CSS_ADD_TAG = "<style type=\"text/css\">\n* html{ background:#fff;}div.confnla div.rig1 div.v13fn{border:1px solid #dcdcdc;width:38px;height:13px;float:left;padding:1px 0 0 3px;background:#fff;}div.confnla div.rig1 div.v13fn input{vertical-align:middle;width:11px;height:11px;border:0;}div.confnla div.rig1 div.v13fn label{vertical-align:middle;font-size:0.95em;color:#898989;letter-spacing:-0.09em;padding:0;}div.vwrap18 div.viewla div.ins ul{margin:2px 2px 0 2px;padding:0 0 0 0;background:url() repeat-x;}\n</style>";

	public static String REG_EXP_CHECKBOX = "<\\s*input\\s*type\\s*=\\s*('|\")checkbox('|\")(\\s[a-zA-Z]*=[^>]*)?(\\s)*(/)?>";
	public static String REG_EXP_IMG = "<\\s*img(\\s[a-zA-Z]*=[^>]*)?(\\s)*(/)?>";
	public static String REG_EXP_P = "<\\s*p\\s*class\\s*=\\s*('|\")pty1('|\")(\\s[a-zA-Z]*=[^>]*)?(\\s)*(/)?>";
	public static String REG_EXP_A = "<(/)?\\s*a(\\s[a-zA-Z]*=[^>]*)?(\\s)*(/)?>";

	public static String CHG_EXP_P = "<p class=\"pty1\">";

	public static String HTML_START_TAG_1 = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-16le\">\n<html>\n<head>\n<title></title>\n<style>\n";
	public static String HTML_START_TAG_2 = "</style>\n</head>\n<body>";
	public static String HTML_END_TAG = "</body>\n</html>";


	public static String TITLE_NAME = "대한민국 현행법령";
	public static String ERROR_MESSAGE_1 = "조회된 데이터가 없습니다.";
	public static String ERROR_MESSAGE_2 = "더이상 데이터가 없습니다.";
	public static String ERROR_MESSAGE_3 = "법령을 선택해주세요.";
	public static String ERROR_MESSAGE_4 = "서비스가 준비중입니다.";
	public static String ERROR_MESSAGE_5 = "첫 페이지입니다.";
	public static String ERROR_MESSAGE_6 = "마지막 페이지입니다.";

}
